import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
/*   mode: 'history',
  base: process.env.BASE_URL, */
  routes: [
    {
      path: '/',
      name: 'origin',
      redirect: '/dashboard',
      component: () => import('@/views/index/index')
    },
    {
      path: '/dashboard',
      name: 'Dashboard',
      component: () => import('@/views/index/index')
    },
    {
      path: '/login',
      name: 'Login',
      component: () => import('@/views/login/index')
    }
  ]
})
